package com.bandaotixi.cashier.api.system.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 菜单路由视图对象
 *
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouteVO {

    private String path;

    private String component;

    private String redirect;

    private String name;

    private Meta meta;

    @Data
    public static class Meta {

        private String title;

        private String icon;

        private Boolean hidden;

        @JsonInclude(JsonInclude.Include.NON_NULL)
        private Boolean keepAlive;

        @JsonInclude(JsonInclude.Include.NON_NULL)
        private Boolean alwaysShow;

        private Map<String,String> params;
    }

    private List<RouteVO> children;
}
